package com.amit.hibernate2;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;

public class Lab1Client {

	
	public static void main(String[] args) {
		
		
   SessionFactory sessionfactory=CHibernateUtil.getfactory();
   Session session=sessionfactory.openSession();
   Transaction tx=session.beginTransaction();
   
   Anant cust=new Anant("anant", "any@gmail.com", "mumbai",1234, 100.0);
   
   session.save(cust);	
   
   tx.commit();
   session.close();
   
   System.out.println("Record inserted");
   
   
   
   
   
		

	}

}
